<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('root\img/book.ico')}}">
    <title>天天书屋后台管理系统</title>
    <link href="{{URL::asset('root\css/bootstrap.min.css')}}" rel="stylesheet" type="text/css" />
    <link href="{{URL::asset('root\css/font-awesome.min.css')}}" rel="stylesheet" type="text/css" /> 
    <link href="{{URL::asset('root\css/style.css')}}" rel="stylesheet" type="text/css" />
    <link href="{{URL::asset('root\fonts/fontawesome-webfont.eot')}}" rel="stylesheet"  />
    <link href="{{URL::asset('root\fonts/fontawesome-webfont.svg')}}" rel="stylesheet"  />
    <style>
      .form_yzm {
        display: inline;
        margin-left: 8px;
      }

    </style>
</head>

<body>
    <div class="main-wrapper account-wrapper">
        <div class="account-page">
			   <div class="account-center">
				  <div class="account-box">
                    <form action="{{url('admin/login_user')}}" method="post" class="form-signin" onsubmit="return lbyz(this)" >
						            <div class="account-logo">
                            <a href="{{url('admin/login')}}"><img src="{{URL::asset('root\img/书籍.png')}}" width="45" height="45" alt=""></a>
                        </div>
                        <div class="form-group">
                            <label>用户名</label>
                            <input type="text" autofocus="" class="form-control" name="yhm">
                        </div>
                        <div class="form-group">
                            <label>密码</label>
                            <input type="password" class="form-control " name="mm">
                        </div>
                        <div class="form-group">
                          <label>验证码</label>
                          <input name="yzm" type="text" style=" width:95px;" class="form-control form_yzm" /><img src="{{url('captcha/show')}}"  style=" margin-left:59px;margin-top: -3px;" onclick="this.src='{{url('captcha/show')}}?'+Math.random()"/>
                        </div>

                        <div class="form-group">

                          <span href="#" style="color:red;font-weight: bold;font-size: 16px;" >{{session()->get('message')}}</span>
                          
                        </div>   
                        {{csrf_field()}}
                        <div class="form-group text-center" >
                            <button type="submit" class="btn btn-primary account-btn">登录</button>
                        </div>
                        <div class="text-center register-link">
                            天天书屋后台管理系统
                        </div>
                    </form>
                   
           </div>
		     </div>
       </div>
     </div>
</body>
<script src="{{URL::asset('root\js/jquery-3.2.1.min.js')}}"></script>
<script src="{{URL::asset('root\js/popper.min.js')}}"></script>
<script src="{{URL::asset('root\js/bootstrap.min.js')}}"></script>
<script src="{{URL::asset('root\js/app.js')}}"></script>
<script src="{{URL::asset('root\js/background.js')}}"  count="200" zindex="-2" opacity="0.8" color="47,135,193" type="text/javascript"></script>
<script language="javascript">
  function lbyz(fom){
    if(fom.yhm.value==''){
      alert('请输入用户名');
      fom.yhm.select();
      return false;
      }
    if(fom.mm.value==''){
      alert('请输入密码');
      fom.mm.select();
      return false;
      }
    
    if(fom.yzm.value==''){
      alert('请输入验证码');
      fom.yzm.select();
      return false;
      }
    }
  
  </script>
</html>
